<?php

class UserOrderStatuesForm extends BaseUserOrderForm
{

    public function configure()
    {
        $choices = array(
            PluginUserOrder::USERORDERSTATUES_NEW        => 'New',
            PluginUserOrder::USERORDERSTATUES_INPROGRESS => 'In Progress',
            PluginUserOrder::USERORDERSTATUES_DONE       => 'Done',
        );
        $this->setWidget('order_status', new sfWidgetFormChoice(array('choices' => $choices)));
        $this->setValidator('order_status', new sfValidatorChoice(array('choices' => array_keys($choices))));
        $this->useFields(array('order_status'));
        $this->disableCSRFProtection();
    }

}